﻿@using NewRen.Models
@{
    ViewBag.Title = "牛人信息修改";
    Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
    User user = ViewBag.User as User;
}

<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2>牛人信息修改</h2>
        <ol class="breadcrumb">
            <li>
                <a href="/Admin/Home/Index">后台管理</a>
            </li>
            <li>
                <a href="/Admin/NewRen/Index">牛人管理</a>
            </li>
            <li>
                <a href="#">牛人信息修改</a>
            </li>
        </ol>
    </div>
</div>
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>牛人信息修改 <small>@user.UserName</small> <small><a href="/Admin/NewRen/Index">牛人管理</a></small></h5>
                </div>
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                        @using (Html.BeginForm("Edit", "NewRen", FormMethod.Post, new { id = "frmEditNewRen", @class = "form-horizontal", enctype = "multipart/form-data" }))
                        {
                            @Html.AntiForgeryToken()
                            <input type="hidden" value="@user.ID" name="ID" />
                            <table class="detail-table">
                                <tr>
                                    <td class="row-title">用户名</td>
                                    <td>
                                        <input type="text" class="textbox" name="UserName" value="@user.UserName" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="row-title">真实姓名</td>
                                    <td>
                                        <input type="text" class="textbox" name="RealName" value="@user.RealName" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="row-title">电话</td>
                                    <td>
                                        <input type="text" class="textbox" name="Phone" value="@user.Phone" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="row-title">工作</td>
                                    <td>
                                        <input type="text" class="textbox" name="Job" value="@user.Job" />
                                    </td>
                                </tr>

                                <tr>
                                    <td class="row-title">地址</td>
                                    <td>
                                        <input type="text" class="textbox" name="Address" value="@user.Address" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="row-title">邮箱</td>
                                    <td>
                                        <input type="text" class="textbox" name="Email" value="@user.Email" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="row-title">QQ</td>
                                    <td>
                                        <input type="text" class="textbox" name="QQ" value="@user.QQ" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="row-title">微信</td>
                                    <td>
                                        <input type="text" class="textbox" name="WhatApp" value="@user.WhatApp" />
                                    </td>
                                </tr>
                            </table>
                            <p>
                                <input value="保存" type="submit" class="button blue" />
                            </p>
                        }
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
